﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.Security;
using System.Web.UI.WebControls;

//show
//sho
////////
//////
/////kkkkkk

namespace PMS
{
    public partial class About : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            MembershipUser mem = Membership.GetUser(this.TextBox1.Text.Trim());
            if (!string.IsNullOrEmpty(mem.UserName))
            {
                string p = mem.ResetPassword();
                mem.ChangePassword(p, "000000");
            }
            else
            {
                string str1 = "用户名不存在！";
                ClientScript.RegisterStartupScript(ClientScript.GetType(), "", "<script>alert('" + str1 + "');</script>");
            }
        }
    }
}
